<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<?php
include_once("../DAO/DanhMucDAO.php");
include_once("../DAO/DanhMucDTO.php");
include_once("../DAO/DataHelper.php");
 
	$id = $_GET['ID'];
	if($id !='MucCon1')
	{
		$KQ = DanhMucDao::DanhMucCon($id);
		$result = DanhMucDao::HienThiTenDanhMucCon($id);
		$DanhMuc = $result->dm_ten;
	}
	else
	{
		$DanhMuc='';
	}
  		echo'	<tr>';
		echo'  <td width="31%" align="left" bgcolor="#F2F2F2"><strong>Danh Muc Cap 2 : </strong></td>';
		echo'  <td width="69%" bgcolor="#F2F2F2"><label>';
		echo'	<select name="DanhMucCon1" id="DanhMucCon1" onchange="HienThiDanhMucCon1(this.value)" style="width:385px" >';
		echo'	<option value ="MucCon2">Chon Danh Muc Con 2</option> ';
		if($id !='MucCon1')
		{
		 for($i = 0 ; $i < count($KQ) ; $i++)
			{
				$danhmuccon = $KQ[$i];
				echo  "<option value = $danhmuccon->dm_ma> $danhmuccon->dm_ten</option>";
			}
		}
		echo'	</select>';
		echo'  </label></td>';
		echo'</tr>';
		echo'	<tr id="DanhMucCon2">';
		echo '<td width="31%" align="left"><strong>Danh Muc Dang Chon: </strong></td>';
		echo "<td width='69%'><input name='HienThiDanhMuc'id='DanhMucDangChon' type='text'  value='$DanhMuc'  size='70' style='width:380px' /></td>";
		echo'</tr>'
?>